package net.fpeg.kotlin.msa.auth.controller

import net.fpeg.kotlin.msa.auth.dao.UserDao
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestHeader
import org.springframework.web.bind.annotation.RestController

@RestController
class HelloController {
    @Autowired
    lateinit var userDao: UserDao

    @GetMapping("/hello")
    fun hello(@RequestHeader("USER_ID") id: String): String {
//        val x = TUser()
//        x.password="asd"
//        userDao.save(x)
        return id
    }
}


